package com.itheima.consumer.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.itheima.consumer.pojo.MessageInfo;


import java.util.List;

public interface ConsumerService {

    List<MessageInfo> getHistoryMessage();

    void sendMessage(MessageInfo messageInfo) throws JsonProcessingException;

    void add(MessageInfo messageInfo);
}
